package com.dragon.english_practice_back.enums;


import lombok.Getter;

@Getter
public enum RedisPrefixEnum {
    ACCESS_TOKEN("access_token:"),
    LOGIN_USER_DETAIL("login:user:detail:"),
    ENGLISH_CHINESE_TRANSLATE_LOCK("exercise:ECT:lock:"),
    CHINESE_ENGLISH_TRANSLATE_LOCK("exercise:CET:lock:"),
    ENGLISH_CHINESE_TRANSLATE_QUEUE("exercise:ECT:queue:"),
    CHINESE_ENGLISH_TRANSLATE_QUEUE("exercise:CET:queue:"),

    WORD_LEARN_SCHEDULE("word:learn:schedule:"),
    WORD_LEARN_SCHEDULE_BOOK("book:"),
    WORD_LEARN_SCHEDULE_LOCK("word:learn:schedule:lock:"),
    WORD_LEARN_SCHEDULE_BOOK_LOCK("book:lock:"),
    GRAMMAR_SCHEDULE("grammar:schedule:"),
    GRAMMAR_SCHEDULE_LOCK("grammar:schedule:lock:");

    final String prefix;

    RedisPrefixEnum(String prefix) {
        this.prefix = prefix;
    }

}
